<?php	
	header("Content-Type: text/html;charset=utf-8");

	include("function/_nosql.php"); //

	include("function/function.php");
	
	if(IS_AJAX){
		if($_GET['tu'] == 'pian'){
			$url = $_POST['URL'];
			$url = explode(',', $url);
			$urls[] = ltrim($url[0],'/');
			$urls[] = ltrim($url[1],'/');
			$urls[] = ltrim($url[2],'/');
			foreach ($urls as $k => $v) {
				if(file_exists($v)){
					if(unlink($v)){
						echo 1;
					}else{
						echo 2;
					}
				}else{
					echo 3;
				}
			}
		}
		if($_GET['aid'] == 'shang'){
			$aid = $_POST['aid'];
			$active_center = getClassName("kboy_forum_active", "active_center","id = $aid");
			$active_all_money = getClassName("kboy_forum_active", "active_all_money","id = $aid");
			$active_center = explode('，', $active_center);
			$zong = count($active_center);
			$active_center = json_encode(array('data'=>$active_center,'zong'=>$zong,'money'=>$active_all_money));
			echo $active_center;
		}
		if($_GET['log'] == 'login'){
		 echo json_encode(1);
		}
	}
